package service.impl;

import dao.RoleDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import service.RoleService;

import java.util.Set;

@Service
public class RoleServiceimpl implements RoleService {
    @Autowired
    RoleDao roleDao;
    @Override
    public Set<String> findRoleByUserId(int id) {
         Set<String> set = roleDao.findById(id);

         return set;
    }
}
